package com.happyclub.lbjdao;

import com.happyclub.pojo.TbProductColor;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

public interface ProductColor extends JpaRepository<TbProductColor,String> {

    //更新颜色
    @Modifying
    @Query(value = "update TB_PRODUCT_COLOR u set u.COLOR = :upcolor ,u.UPDATE_TIME = SYSDATE WHERE u.ID = :upid",nativeQuery = true)
    int updateColor(@Param("upcolor") String upcolor,@Param("upid") String upid);
}
